/// finishedCount : 1
/// total : 1
/// rows : [{"age":86,"bedId":2378,"bedNo":"8002-2","branchId":6627,"createdDate":"2022-03-28 20:35:50","customerElderId":7019,"elderName":"梁喜琳","fin":1,"headimageId":3941,"nurseLevel":"三级护理","nurseLevelId":294,"percentage":1.0,"serviceAreaId":null,"sex":1,"sexName":"女","wait":0}]
/// waitCount : 0
/// totalMession : 1

class ServiceExecuteStatisticsData {
  ServiceExecuteStatisticsData({
      this.finishedCount, 
      this.total, 
      this.rows, 
      this.waitCount, 
      this.totalMession,});

  ServiceExecuteStatisticsData.fromJson(dynamic json) {
    finishedCount = json['finishedCount'];
    total = json['total'];
    if (json['rows'] != null) {
      rows = [];
      json['rows'].forEach((v) {
        rows?.add(ServiceExecuteStatisticsDataList.fromJson(v));
      });
    }
    waitCount = json['waitCount'];
    totalMession = json['totalMession'];
  }
  int? finishedCount;
  int? total;
  List<ServiceExecuteStatisticsDataList>? rows;
  int? waitCount;
  int? totalMession;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['finishedCount'] = finishedCount;
    map['total'] = total;
    if (rows != null) {
      map['rows'] = (rows??[]).map((v) => v.toJson()).toList();
    }
    map['waitCount'] = waitCount;
    map['totalMession'] = totalMession;
    return map;
  }

}

/// age : 86
/// bedId : 2378
/// bedNo : "8002-2"
/// branchId : 6627
/// createdDate : "2022-03-28 20:35:50"
/// customerElderId : 7019
/// elderName : "梁喜琳"
/// fin : 1
/// headimageId : 3941
/// nurseLevel : "三级护理"
/// nurseLevelId : 294
/// percentage : 1.0
/// serviceAreaId : null
/// sex : 1
/// sexName : "女"
/// wait : 0

class ServiceExecuteStatisticsDataList {
  ServiceExecuteStatisticsDataList({
      this.age, 
      this.bedId, 
      this.bedNo, 
      this.branchId, 
      this.createdDate, 
      this.customerElderId, 
      this.elderName, 
      this.fin, 
      this.headimageId, 
      this.nurseLevel, 
      this.nurseLevelId, 
      this.percentage, 
      this.serviceAreaId, 
      this.sex, 
      this.sexName, 
      this.wait,});

  ServiceExecuteStatisticsDataList.fromJson(dynamic json) {
    age = json['age'];
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    branchId = json['branchId'];
    createdDate = json['createdDate'];
    customerElderId = json['customerElderId'];
    elderName = json['elderName'];
    fin = json['fin'];
    headimageId = json['headimageId'];
    nurseLevel = json['nurseLevel'];
    nurseLevelId = json['nurseLevelId'];
    percentage = json['percentage'];
    serviceAreaId = json['serviceAreaId'];
    sex = json['sex'];
    sexName = json['sexName'];
    wait = json['wait'];
  }
  int? age;
  int? bedId;
  String? bedNo;
  int? branchId;
  String? createdDate;
  int? customerElderId;
  String? elderName;
  int? fin;
  int? headimageId;
  String? nurseLevel;
  int? nurseLevelId;
  double? percentage;
  dynamic serviceAreaId;
  int? sex;
  String? sexName;
  int? wait;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['age'] = age;
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['branchId'] = branchId;
    map['createdDate'] = createdDate;
    map['customerElderId'] = customerElderId;
    map['elderName'] = elderName;
    map['fin'] = fin;
    map['headimageId'] = headimageId;
    map['nurseLevel'] = nurseLevel;
    map['nurseLevelId'] = nurseLevelId;
    map['percentage'] = percentage;
    map['serviceAreaId'] = serviceAreaId;
    map['sex'] = sex;
    map['sexName'] = sexName;
    map['wait'] = wait;
    return map;
  }

}